package com.yvon.maple.service.auth.valicode.validate.code.processor;

import com.yvon.maple.service.auth.valicode.validate.code.generator.CodeGenerator;
import com.yvon.maple.service.auth.valicode.validate.code.repository.CodeRepository;
import com.yvon.maple.service.auth.valicode.vo.CodeVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 短信验证码处理器
 *
 * @author : Yvon
 * @since : 2021-08-24
 */
@Component(SmsCodeProcessor.PROCESSOR)
@Slf4j
public class SmsCodeProcessor extends AbstractCodeProcessor<CodeVo> {

	public static final String PROCESSOR = "smsCodeProcessor";

	public SmsCodeProcessor(Map<String, CodeGenerator> validateCodeGenerators, CodeRepository codeRepository) {
		super(validateCodeGenerators, codeRepository);
	}

	/**
	 * 发送校验码，由子类实现
	 *
	 * @param validateCode
	 * @author : Yvon / 2021-08-25
	 */
	@Override
    protected void send(CodeVo validateCode) {

    }
}
